package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UcsdPartNetModelMapper;
import com.ruoyi.system.domain.UcsdPartNetModel;
import com.ruoyi.system.service.IUcsdPartNetModelService;
import com.ruoyi.common.core.text.Convert;

/**
 * 抓取实例Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-25
 */
@Service
public class UcsdPartNetModelServiceImpl implements IUcsdPartNetModelService 
{
    @Autowired
    private UcsdPartNetModelMapper ucsdPartNetModelMapper;

    /**
     * 查询抓取实例
     * 
     * @param id 抓取实例主键
     * @return 抓取实例
     */
    @Override
    public UcsdPartNetModel selectUcsdPartNetModelById(Long id)
    {
        return ucsdPartNetModelMapper.selectUcsdPartNetModelById(id);
    }

    /**
     * 查询抓取实例列表
     * 
     * @param ucsdPartNetModel 抓取实例
     * @return 抓取实例
     */
    @Override
    public List<UcsdPartNetModel> selectUcsdPartNetModelList(UcsdPartNetModel ucsdPartNetModel)
    {
        return ucsdPartNetModelMapper.selectUcsdPartNetModelList(ucsdPartNetModel);
    }

    /**
     * 新增抓取实例
     * 
     * @param ucsdPartNetModel 抓取实例
     * @return 结果
     */
    @Override
    public int insertUcsdPartNetModel(UcsdPartNetModel ucsdPartNetModel)
    {
        return ucsdPartNetModelMapper.insertUcsdPartNetModel(ucsdPartNetModel);
    }

    /**
     * 修改抓取实例
     * 
     * @param ucsdPartNetModel 抓取实例
     * @return 结果
     */
    @Override
    public int updateUcsdPartNetModel(UcsdPartNetModel ucsdPartNetModel)
    {
        return ucsdPartNetModelMapper.updateUcsdPartNetModel(ucsdPartNetModel);
    }

    /**
     * 批量删除抓取实例
     * 
     * @param ids 需要删除的抓取实例主键
     * @return 结果
     */
    @Override
    public int deleteUcsdPartNetModelByIds(String ids)
    {
        return ucsdPartNetModelMapper.deleteUcsdPartNetModelByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除抓取实例信息
     * 
     * @param id 抓取实例主键
     * @return 结果
     */
    @Override
    public int deleteUcsdPartNetModelById(Long id)
    {
        return ucsdPartNetModelMapper.deleteUcsdPartNetModelById(id);
    }
}
